//
// Created by Yun on 2025/2/25.
//

#include "user_register_dev_bsp.h"

void User_Register_Dev_Bsp(void)
{
    Dev_Sys_Register(&stBspSysInterface);
    Dev_Sys_Init(Dev_Sys_Debug_SWD);

    Dev_Flash_Register(&stBspFlashInterface, 0x80000000,2*1024,16*1024);

    Dev_Led_Register(&stDev_Red_Led, &stGpio_PC5, &stBspGpioInterface);
    Dev_Led_Register(&stDev_Blue_Led, &stGpio_PB2, &stBspGpioInterface);

    Dev_Button_Register(&stDev_Button1, &stGpio_PA0, &stBspGpioInterface);
    Dev_Button_Register(&stDev_Button2, &stGpio_PA1, &stBspGpioInterface);
    Dev_Button_Register(&stDev_Button3, &stGpio_PA4, &stBspGpioInterface);

    Dev_W25Q_Register(&stDev_W25Q128, &stSpi_SPI1, &stBspSpiInterface);

    Dev_Uart_Register( &stDev_Uart1, &stUart_UART1, &stBspUartInterface);

//    Dev_OLed_4P_Register(&stDev_OLed_4p, &stI2c_I2C1, &stBspI2CInterface);

    Dev_Tim_Register(&stDev_Tim6, &stTim_TIM6, &stBspTimInterface);
    Dev_Tim_Register(&stDev_Tim6_5, &stTim_TIM6, &stBspTimInterface);
}
